﻿@using DirectSell.Model.Bonus
@using Webdiyer.WebControls.Mvc;
@model PagedList<MemberBonus>
<table class="table table-bordered table-striped">
    <tr>
        <th>序号</th>
        <th>日期</th>
        <th>会员编号</th>
        <th>奖金类别</th>
        <th>说明</th>
        <th>金额</th>
    </tr>
    @{int i = 0;}
    @foreach (var item in Model)
    {
    <tr>
        <td>@(Model.StartItemIndex + i++)</td>
        <td>@item.CreateDate</td>
        <td>@item.UserCode</td>
        @switch (item.Type)
        {
            case "001":<td>销售佣金</td>; break;
            default: <td>暂无说明</td>;break;
        }
        <td>@item.Message</td>
        <td>@item.Amount</td>
    </tr>
    }
</table>